-
Notifications
You must be signed in to change notification settings - Fork 579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add email subscription #1081
base: master
Are you sure you want to change the base?
Conversation
37c15f3
to
071172e
Compare
I am thinking that maybe, we should not use a generic |
agree |
@@ -7,6 +7,7 @@ import spaceStarknetDelegation from './examples/space-starknet-delegation.json'; | |||
import proposalTurbo from './examples/proposal-turbo.json'; | |||
import vote from './examples/vote.json'; | |||
import profile from './examples/profile.json'; | |||
import subscription from './examples/subscription.json'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think we should rename this file also to avoid confusions
"type": "email", | ||
"value": "[email protected]", | ||
"metadata": "['summary', 'newProposal']" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure what this file is for 🤔
Toward https://github.com/snapshot-labs/workflow/issues/226
Following snapshot-labs/snapshot-hub#951
This PR will add a new subscription/unsubscription features
subscription
will allow adding a new subscription when passing an email, and updating an existing subscription when just passing a metadatadelete-subscription
will allow deleting an existing subscriptionBy merging the write function from envelop (https://github.com/snapshot-labs/envelop/?tab=readme-ov-file#subscribe-to-the-mailing-list) into snapshot.js, then sequencer, we can leverage the signature and alias feature of sequencer, and will not require an extra handling of transaction signature.
How to tests
See snapshot-labs/snapshot-sequencer#470